package com.zhengbing.tj.design.chain;

/**
 * 责任链模式-第二个处理者
 *
 * @author zhengbing
 * @date 2025-07-21
 */
public class SecondHandler extends Handler {
    @Override
    public void handle(String request) {
        if (request.contains("B")) {
            System.out.println("SecondHandler 处理了请求: " + request);
        } else if (next != null) {
            next.handle(request);
        }
    }
} 